import React, { Component } from 'react'
import { NavLink, Route } from 'react-router-dom'
import cn from './parameter.module.css'
import search from './search/search.jsx'
import params from '../parameter/params/params.jsx'
import state from '../parameter/state/state.jsx'

export default class parameter extends Component {
  render() {
    return (
      <div className={cn['parameter']}>
        <h1>这是parameter页面</h1>
        <NavLink className={cn['route-link']} to="/parameter/search">search</NavLink>
        <NavLink className={cn['route-link']} to="/parameter/params">params</NavLink>
        <NavLink className={cn['route-link']} to="/parameter/state">state</NavLink>
        <div className={cn['line']}></div>
        <Route path="/parameter/search" component={search} />
        <Route path="/parameter/params" component={params} />
        <Route path="/parameter/state" component={state} />
        {/* <Redirect to="/parameter/search"/> */}
      </div>
    )
  }
}